package com.xinghou.mq.consumer;

import com.xinghou.mq.ShareCardInterface;

/**
 * 消息 card
 * 
 * @author zhangjinwen 2016年1月6日
 */
public class CardConsumer  extends AbstractConsumer {

	private ShareCardInterface  shareCardInterface;

	public CardConsumer() {
		shareCardInterface = this.getBean("mqCardService");
	}
	protected void doWork(String task) {
		String[] datas = task.split(":");
	    shareCardInterface.update(Integer.parseInt(datas[0]), datas[1].equals("U"));
	}


}
